<template>
  <div class="home">
     <h1>{{name}}</h1>
     <h1>{{lastName}}</h1>
     <h1>{{app.sandbox}}</h1>
     <test-dialog :show="show"/>
     <friday />
  </div>
</template>

<script>
// @ is an alias to /src
// 父beforeRouteEnter - 父beforeMount - 子beforeMount  - 父beforeRouteEnter-next - 子mounted - 父mounted
import testDialog from '../components/w-dialog';
import friday from '../components/w-friday';
export default {
  components: {
    testDialog,
    friday
  },
  mounted(){
  },
  data(){
    return {
      name: '老妈身体健康',
      name2: '老妈身体健康',
      lastName: '老妈身体健康2',
      lastName2: '老妈身体健康2',
      show: false,
      app:{
        sandbox:{proxy: {
          vmMap: new Map([
            ['aaa',{
              b: 1
            }],
            ['bbb',{
              a: 2
            }]
          ]
          )
          }  
        }
      }
    }
  },
  //  changeNmae('早睡早起')
  methods: {
    changeName (name,lastName){
      this.name = name
      this.lastName = lastName
    }
  }
}
</script>
